package com.lagou.rabbitmq.demo.dao;

import org.springframework.stereotype.Repository;

import java.util.Stack;

public class Order {
    private Order(){

    }
    private int id;
    private String status;

    private static Order order = new Order();
    static {
        order.id = 1;
    }
    // 单例对象
    public static Order getInstance(){
        return order;
    }

    public void setStatus(String status) {
        this.status = status;
    }
    public String getStatus() {
        return status;
    }
    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", status='" + status + '\'' +
                '}';
    }


}
